package com.kimehwa.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author xiaodongguan
 * @description
 * @since 2021-08-14 17:14
 */
@Data
@TableName("user")
public class UserHigh {

    private Long id;

    private String name;
    private Integer age;
    private String email;
    private Long managerId;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;
    private Integer version;
    // 逻辑删除标识
    @TableLogic
    @TableField(select = false)
    private Integer deleted;

}
